home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15211 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  932 b 

  1. Path: mundil.cs.mu.OZ.AU!simc
  2. From: simc@mundil.cs.mu.OZ.AU (Falchion)
  3. Newsgroups: comp.lang.c
  4. Subject: PUBLIC / PRIVATE
  5. Date: 17 Apr 1996 20:27:57 GMT
  6. Organization: Comp Sci, University of Melbourne
  7. Message-ID: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
  8. NNTP-Posting-Host: mundil.cs.mu.oz.au
  9.  
  10. I'm analysing some C source code and I've
  11. come across PUBLIC and PRIVATE keywords
  12.  
  13. eg PUBLIC char * app_name = "Lynx";
  14.  
  15.    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  16.                     s, int, l) { fwrite(s, 1, l, me->fp) }
  17.  
  18.  
  19. I though C didn't have PUBLIC or PRIVATE ?
  20. It definitely doesn't look like C++ source code - it looks like
  21. C code with PUBLIC and PRIVATE keywords scattered everywhere.
  22.  
  23. 2nd question:
  24.    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  25.                     s, int, l) { fwrite(s, 1, l, me->fp) }
  26.  
  27.    What is the ARGS3 ?
  28.    I'm accustomed to 
  29.     return_type function_name(args) { ... }
  30.  
  31.  
  32. -- Simon
  33. simc@mundil.cs.mu.oz.au
  34.